function [H,PValue,Stat]=TestForDifferentDistribution(X,Group1Label,Group2Label)

x1=X(Group1Label,:);
x2=X(Group2Label,:);

[H,PValue,Stat]=kstest2(x1(:),x2(:));